import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/:pathMatch(.*)*',
    name: 'login',
    component: () => import('../views/login.vue'),
  },
  {
    path: 'performance',
    name: 'performance',
    component: () => import('../views/performance/performance.vue'),
  },
  {
    path: '/notFound',
    name: 'notFound',
    component: () => import('../views/notFound/notFound.vue'),
  },
  ,
  {
    path: 'examination',
    name: 'examination',
    component: () => import('../views/examination/examination.vue'),
  }, {
    path: 'grade',
    name: 'grade',
    component: () => import('../views/grade/grade.vue'),
  },

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

router.beforeEach((to, from, next) => {
  next();
});

export default router
